package com.telnetnz.ticketdesk.action.base;

import java.util.List;

import org.apache.log4j.Logger;

import com.rockbb.common.sso.acl.ACLBuilder;

public class IntercepterMethods
{

	private static Logger logger = Logger.getLogger(IntercepterMethods.class);

	public static boolean accVerify(String permissions, List<Integer> accesses)
	{
		if (accesses != null && accesses.size() > 0)
		{
			for (Integer access : accesses)
			{
				if (ACLBuilder.IndexOf(permissions, access))
				{
					return true;
				}
			}
		}
		return false;
	}
}
